import top.scauwlt.extension.ExtensionLoader;
import top.scauwlt.serialize.Serializer;

/**
 * @Author wmm
 * @Date 2022/7/24 23:58
 */
public class TestSPI {
    public static void main(String[] args) {
        Serializer test = ExtensionLoader.getExtensionLoader(Serializer.class).getExtension("kryo");
        System.out.println(test);
        byte[] bytes = test.serialize("123");
        System.out.println(new String(bytes));
        String s = test.deserialize(bytes, String.class);
        System.out.println(s);
    }
}
